package com.hjm.project.bankCardtype.bankCardtype.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hjm.project.bankCardtype.bankCardtype.mapper.BankCardtypeMapper;
import com.hjm.project.bankCardtype.bankCardtype.domain.BankCardtype;
import com.hjm.project.bankCardtype.bankCardtype.service.IBankCardtypeService;
import com.hjm.common.utils.text.Convert;

/**
 * 签购单Service业务层处理
 * 
 * @author LOVE
 * @date 2020-11-28
 */
@Service
public class BankCardtypeServiceImpl implements IBankCardtypeService 
{
    @Autowired
    private BankCardtypeMapper bankCardtypeMapper;

    /**
     * 查询签购单
     * 
     * @param areacode 签购单ID
     * @return 签购单
     */
    @Override
    public BankCardtype selectBankCardtypeById(String areacode)
    {
        return bankCardtypeMapper.selectBankCardtypeById(areacode);
    }

    /**
     * 查询签购单列表
     * 
     * @param bankCardtype 签购单
     * @return 签购单
     */
    @Override
    public List<BankCardtype> selectBankCardtypeList(BankCardtype bankCardtype)
    {
        return bankCardtypeMapper.selectBankCardtypeList(bankCardtype);
    }

    /**
     * 新增签购单
     * 
     * @param bankCardtype 签购单
     * @return 结果
     */
    @Override
    public int insertBankCardtype(BankCardtype bankCardtype)
    {
        return bankCardtypeMapper.insertBankCardtype(bankCardtype);
    }

    /**
     * 修改签购单
     * 
     * @param bankCardtype 签购单
     * @return 结果
     */
    @Override
    public int updateBankCardtype(BankCardtype bankCardtype)
    {
        return bankCardtypeMapper.updateBankCardtype(bankCardtype);
    }

    /**
     * 删除签购单对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteBankCardtypeByIds(String ids)
    {
        return bankCardtypeMapper.deleteBankCardtypeByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除签购单信息
     * 
     * @param areacode 签购单ID
     * @return 结果
     */
    @Override
    public int deleteBankCardtypeById(String areacode)
    {
        return bankCardtypeMapper.deleteBankCardtypeById(areacode);
    }
}
